{% extends "projects/admin/base.html" %}

{% load i18n assets %}

{% get_current_language as LANGUAGE_CODE %}

{% block title %}{% trans "Permissions" %} | {{ block.super }}{% endblock %}

{% block content %}
<div class="settings-container centered" lang="{{ LANGUAGE_CODE }}">
  <p class="info">{% trans "Below you can add, edit, and delete the permissions for this project." %}</p>
  <p class="help">
    {% trans "The user “nobody” refers to any user that is not logged in (an anonymous, unidentified user). The user “default” refers to the rights that all logged in users will have by default, unless other specific rights were assigned to them." %}
  </p>

  {% include "admin/_generic_formset.html" %}
</div>
{% endblock %}

{% block scripts_extra %}
{% assets 'js_admin_general_app' %}
<script type="text/javascript" src="{{ ASSET_URL }}"></script>
{% endassets %}
{% assets 'js_admin_app' %}
<script type="text/javascript" src="{{ ASSET_URL }}"></script>
{% endassets %}
<script type="text/javascript">
  $(function () {
    PTL.commonAdmin.init({page: 'formset'});
    PTL.userAdmin.init();
  });
</script>
{% endblock %}
